Delegate deserialization to Serializer class

Fixes #10.