glsl: Replace length variable used for interface and struture blocks with num_elements