Ensure that object types get retained appropriately.
Mocks can have protocols added to them.
Adds block type signatures.