Added ability to set default type to use for unknown documents.