ref #8146 Restrict term tree selection by termType