KT-1895 Make it possible to pass 1.0 as Float without explicit casting

 #KT-1895 fixed
Added test with number literals passed as constants.