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

Internal pointers