get_varnames function

Extract variable names from terms object, handling specials