Support also parsing of nested objects to documents.
Support parsing of (nested) generic objects or collections into document type.