Fixed GC bug causing odd errors. Added option to print GC debug info.