ac/nir: add glsl_is_array_image() helper