NANs are never equal, fixes #750