Fix annotation interop test to use declaration refs.
Fix NPE.