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

FOR IN RANGE loop works now even with float arguments.
The algorithm from `frange` is done by me based on a problem I encountered at work when I needed to test some temperature values. There might be similar or better solutions on the internet, I didn't do very much research.