glsl: changed length to num_elements for interface and structure types