nir: add glsl_type_is_integer() helper