Fix parameter handling of createDocumentType

All parameters are actually .toString()'d in the browser. To remove the
value from the doctype one has to provide an empty string.
Fix up some invalid parameters in tests

Doctype behaviour tests were tested in Chrome console.