Add support for integer serialization