Another small optimisation for DOCTYPE parsing, as well as some more constant extraction