added filtering for NaN values to number validation / coercion.