Validates the elements of a term or term_rcrd vector.
Details
Internal validity of a term can be checked on three levels:
"valid"checks that all terms are of the formx,x[#],x[#,#]etc. wherexis an identifier and#are positive integers."consistent"checks that all terms are addressed with the same dimensionality; the termsx[1]andx[2,3]are inconsistent."complete"checks that the values span all possible values across all dimensions; ifx[3,4]exist, the vector must contain at least 11 more terms to be consistent (x[1,1]tox[1,4],x[2,1]tox[2,4]andx[3,1]tox[3,3]).
Missing values are ignored as are duplicates and order.
