Added basic serialization support

+ Can serialize simple object
- A lot of object lacking serialization support