Fixed AMUtils::toNearestMetrics, which was passing 64bit value as 32bit argument, implicitly truncating it, and thus giving wrong metrics for large numbers.