Improved handling of NaN in the SM_ASSERT_NEAR* macros.