Fixes for implicit conversions of doubles to floats