minor.

Rename argument class_ => cls of _object_to_doc of HierDictDocument
minor
make get_object_as_{json,yaml} actually use JsonDocument and YamlDocument protocols respectively.