types/Number: fixed NaN handling to `null`