glsl/builtins: Fix textureGrad() for Array samplers.