added missing type checks for float fields
added a test for range restrictions
added range restrictions to the IR
updated error message for a parser test
simplified generator for implementation of fields and added code for range restrictions