Made some optimizations regarding auto/boxing of floats.