Fixed variable leaks and undefined reference to Node in Text.js
Fixed bug in cloneNode. Nested nodes did not have their parentElement set because they were set directly instead of using insertBefore
Fixed bug in querySelectorAll where Text nodes were treated like Element nodes