first version of the debug GC; doesn't work yet
debug GC works now
fixes #609