Make serialize and deserialize methods non-static.

The IntegerType is going to require member knowledge.