Fix for #1850

FOR IN RANGE loop works now even with float arguments.
Should wrap the return value to `float` to make sure we actually got float. Otherwise any valid Python expression goes through and can fail later without error handling.