ENH: check for NaNs in coordinate equality comparison