glsl/linker: fix location for array subscript
tfeedback_decl::assign_location assumes that arrays are going to be packed. But some conditions might prevent packing (e.g: explicit location or smooth interpolation mode).
Instead of assuming that packing will happen, this commit adds a check to determine if it'll happen and use the result to compute the proper location.
Closes: #2214 (closed)