Make NaNs behave properly in eq, gt, gte, lt, and lte