make tgrep._treepositions_no_leaves a public method