Support const methods in C++ serializer
Move header template to its own file
Add support in serializer for C++ features

Support:
- Inheritance in C++ serializer.
- Const and static attributes.
- Destructors.