Give structured types an identity.
More work on view stub generation.
Extend registry to structured types.
Stub generation tests.