Fix NPE.
Issue #1246: Crash the compiler instead of infinite looping on recursive annotation constructors.
Issue #1246: Add a test.