Fix bug in marking of GC roots.