Call nodeWasAdded on all the nodes in the added tree.

Also, walk up from the content element when `getDistributedNodes` is called.

Fixes #255