Change floats to doubles in RateControlMetrics, and make loop counter signs agree. Change-Id: I845cf268d9ce837a543d052d8d0f8dfd32bd9817