Add support for deeper object structures
Merge pull request #201 from arv/document-register-deeper

Add support for deeper object structures in document.register