Updated basic types for new schema API
document types
Added unit tests, added support for documents
Refactored Document type for new type system
Added some unit tests