ref #6794 add TermRelation and rename FeatureNode -> TermTreeNode