tokenizer: fully implemented doctype parsing
test: extended tests