parse_value should not accept float for int fields

Currently integer fields accept float values (that will be casted in database) and can send float values in onchange.

This patch makes values such as 1.1 not valid (while still accepting 1.0 or even 0x10)