Domain Inversion fails to compare equality between date
Similar to #7187 (closed), the equal operator of DomainInversion is wrong with Date and DateTime.
Similar to #7187 (closed), the equal operator of DomainInversion is wrong with Date and DateTime.