Fix GC mark and visit algorithms.