declared() skipped a comment or CDATA section wherever `<!--` or
`<![CDATA[` appeared, including inside an entity's quoted value, another
declaration's literal or a processing instruction. With
`<!ENTITY c "<!--">` before a large entity, the scan skipped to the end
of the file, the large entity was never recorded, and
entities_expand_past let its references through to the XML reader.
- declared() reads a declaration's quoted literals and a processing
instruction as text: a comment or CDATA marker there starts nothing,
and the declarations after it are still read.
- prescan() counts the markup in an entity's value the same way, and a
comment, CDATA section or instruction that closes inside the value
still opens and closes no element.
- too_wide() and prescan() find the end of the internal subset past
quoted literals, comments and instructions, so a `]>` in a value no
longer ends the document type early.