glsl/linker: validate attribute aliasing before optimizations