Add getPath to SearchTreeNode and fix enum generality