glsl: fix if logic
glsl: fix name creation of single dimension unsized arrays
glsl: Need to pass in size for array rather than dimensions otherwise redeclarations wont work
glsl: fix so that correct variable is increased