Implement a real garbage collector

Stack frames and other objects are now really GC'd. No more leaks.