Harden how the compiler references GC objects