Deeper sanity checking of emitted types.

When emitting a method or field, verify that we're able to reference
all mentioned types.  This ensures that we don't accidentally
reference undefined classes/interfaces.

Test: manual inspection of API files
Bug: 69791141
Change-Id: I63deeb7c28629ebeeb5ab16854a6b095bbd06596
1 file changed