glsl_type: Add get_record_instance method