isNumber should return false for NaN

unfortunately, `typeof NaN` is `number`. I think that is not the behavior you want. This little patch fixes that.