Implement float support to FOR IN RANGE loops (fixes #1850)

FOR IN RANGE loop works now even with float arguments.
The problem is that e.g. `1.2e20` is a float but its string representation is `'1.2e20'`. The current algorithm says it contains 4 digits.