fix incorrect NaN handling (comparing NaN to NaN is always false and NaN != NaN is always true)
fix incorrect NaN handling (comparing NaN to NaN is always false and NaN != NaN is always true)

Evfro/polara