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: I0a5d437ec6fa26c6534d426213d52f064b67aaae
1 file changed