Added record parsing
Added record serialization; doesn't work with polymorphic serializers