Remove document::DocumentType (fixes #1730).