Supporting polymorphic serialization.
Implemented and tested polymorphic serialization.
Implemented and tested polymorphic de-serialization.
Merge pull request #25 from Staance/jul29_2

Polymorphic serialization and de-serialization.