1793 fix integer marshalling

This makes sure react-forms sends integer and number fields as numbers.