glsl: Support single dim arrays for now
glsl: bunch more changes to support single dim arrays for now
glsl: Assume builtins are always a single dimension
glsl: use num_elements rather than length for structures