Added basic support for document types (lists and maps)