Fix setting the maximum accessed array element
Fix setting the maximum accessed array element

Array dereferences now point to variable dereferences instead of
pointing directly to variables.  This necessitated some changes to the
way the variable is accessed when setting the maximum index array element.

benaadams/glsl-optimizer,mapbox/glsl-optimizer,mcanthony/glsl-optimizer,KTXSoftware/glsl2agal,tokyovigilante/glsl-optimizer,dellis1972/glsl-optimizer,dellis1972/glsl-optimizer,zeux/glsl-optimizer,adobe/glsl2agal,tokyovigilante/glsl-optimizer,jbarczak/glsl-optimizer,mcanthony/glsl-optimizer,wolf96/glsl-optimizer,jbarczak/glsl-optimizer,zz85/glsl-optimizer,tokyovigilante/glsl-optimizer,KTXSoftware/glsl2agal,adobe/glsl2agal,wolf96/glsl-optimizer,zz85/glsl-optimizer,djreep81/glsl-optimizer,mapbox/glsl-optimizer,benaadams/glsl-optimizer,zeux/glsl-optimizer,bkaradzic/glsl-optimizer,djreep81/glsl-optimizer,zeux/glsl-optimizer,adobe/glsl2agal,zeux/glsl-optimizer,mapbox/glsl-optimizer,zz85/glsl-optimizer,tokyovigilante/glsl-optimizer,bkaradzic/glsl-optimizer,dellis1972/glsl-optimizer,tokyovigilante/glsl-optimizer,djreep81/glsl-optimizer,metora/MesaGLSLCompiler,metora/MesaGLSLCompiler,KTXSoftware/glsl2agal,wolf96/glsl-optimizer,benaadams/glsl-optimizer,adobe/glsl2agal,dellis1972/glsl-optimizer,mapbox/glsl-optimizer,benaadams/glsl-optimizer,dellis1972/glsl-optimizer,mapbox/glsl-optimizer,zz85/glsl-optimizer,KTXSoftware/glsl2agal,bkaradzic/glsl-optimizer,jbarczak/glsl-optimizer,KTXSoftware/glsl2agal,jbarczak/glsl-optimizer,djreep81/glsl-optimizer,bkaradzic/glsl-optimizer,metora/MesaGLSLCompiler,bkaradzic/glsl-optimizer,adobe/glsl2agal,zeux/glsl-optimizer,benaadams/glsl-optimizer,mcanthony/glsl-optimizer,djreep81/glsl-optimizer,mcanthony/glsl-optimizer,jbarczak/glsl-optimizer,zz85/glsl-optimizer,mcanthony/glsl-optimizer,benaadams/glsl-optimizer,wolf96/glsl-optimizer,zz85/glsl-optimizer,wolf96/glsl-optimizer