add a method tree.getelementpath(element) that generates a structural ElementPath expression for an Element