Determine the scope depth of an array of GLSL tokens