move all serialization methods to global space, overloaded ser(), sersize() and des() functions to serialize everything