implement polymorphism for HierDictDocument and JsonDocument
correct error text
per-class serialize_as initial revision