Add tests for DocumentType literals.

The tests now cover all assertions from

level2/core/publicId01.xml
level2/core/systemId01.xml
level2/core/internalSubset01.xml