Remove View type parameter from DocumentType

This should fix #1046.