support useless combinations such as "FOO" = B where B is a boolean (always returns false)

this happens in some older models by mistakes