correct numberIsNaN and areSameValue