REFACTOR: Change exportedness of pathNode and pathLeaf.