don't load parent into tree repeatedly when multiple childs are changed

When an action (e.g. moving a way) caused multiple child elements of the same parent to be changed, their parent was also loaded into the tree multiple times during `tree.intersects()`.

This fixes #1978