Fix #1577
Issue #1577: Ensure the @CompileTimeError annotation gets added to the top level class whenever we would throw an UnresolvedCompilerationError