ensureTermIsValidInfo

Ensures term is one of the read_term/2,3 info shapes (variables(_), variable_names(_), singletons(_)).

Throws

(read_option) if term is none of the above.