Fix issues related to tree changes.

- Changing content[select] to more restrictive needs to clean
  up non matching nodes (we clear the child nodes now)
- Changes to fallback content needs to invalate
- Adding a content or shadow needs to invalidate

wip