Add serialization methods to TMongo