Fix a serialization bug with integer and float when value is 0

0 is False, do never forget it ;)