glsl2: Add flags to enable variable index lowering