Fix issue where the DOM tree could get out of sync.

The problem occurs when a node that requires invalidation is moved into
anohter node that does not require invalidation. The internal pointers
are no updated as expected.

Fixes https://github.com/Polymer/platform/issues/48
Merge pull request #356 from arv/dom-invalidation

Fix issue where the DOM tree could get out of sync.