Detect svg as well as internal namespace in createElement

* Avoid mutating `this.namespace` during `createElement`
* Detect SVG tags in addition to the internal namespace detection