Add method isVariable() that checks whether an
expression parses to a variable.