Only set the internal pointers when the node is part of a shadow tree.
Merge pull request #228 from arv/internal-pointers

Internal pointers
Use HTMLShadowElement wrapper, fix Firefox test errors
Merge pull request #232 from azakus/wrapper-fixup

Wrapper fixup