implement deserialization polymorphism for dictdoc
minor