Make serialize and deserialize methods non-static.

The IntegerType is going to require member knowledge.
Add serialization and deserialization for IntegerType.
Merge pull request #39 from seomoz/mk-123-type-serialization

Mk 123 type serialization