glsl: Properly handle nested structure types.