Fix and refactor slightly GC and GC::Profiler.