Behaviour of treeCopy
When copying a tree with relations, these relations still point in the old tree. This may be desired in some cases, but not in all (e.g., when a copy of an entire AST should be done).
There should be a concept of how to handle this.