Only disable garbage collection when running with midgard extension
Small cleanups