Fix a problem where boolean functions can't be used as RHS to if/ifvarclass