nir: Add a glsl_vec_type() helper.