Small fix to make sure the find_snapshot_mapping gets copied right.
Important fix that solves a bug with the garbage collection. Previously we were calling the final gc function while potentially executing the normal gc. This busy waits until normal GC has finished.
Adding a debugging library to allow debugging that can be permanent, but use macros that are empty when debugging is turned off in a compiler flag. Also, some general refactoring in this commit.
Adding simple test to the test target in the root makefile.