Added sanitizing to integer and float fields

Signed-off-by: Tom Wright <tom@inflatablecookie.com>