Improved equality checks in ConditionalFieldRule.