Add a GC debugging aid.

Allows extra checks to be turned on that trap some bogus additions to
the GC worklist. Got tired of re-doing this each time I debugged GC
issues, so now it can be turned on with a #define.