ENH: add typename to tmpvars and make lists/tuples tmpvars for numexpr
TST: make sure correct exception classes are tested in query