Fix for #1850

FOR IN RANGE loop works now even with float arguments.
Should use `float` here, not `int`. Otherwise real floats given as arguments are turned to integers.