Fix comparisons of bool variables in _variable_is

Only the EQUAL comparison is supported and we have to test it by
testing the variables themselves