glsl2: Fix inlining with sampler array or struct dereferences as arguments.