Add support for serializing integers.