ref #6794 Add termType check to DefinedTermBase and TermVocabulary