Add `struct_type` getter to structure objects
This saves duplicating the type field of the inner structure in
impersonators/chaperones