BUGFIX: handling NotImplemented comparisons in v2.7