Adding serialize support for Int types.