Handle boolean comparisons in EqualsFilter.