Fixes memory issues in Gcx unittests and printf spam

-Fixes use of already freed memory in Gcx.Invariant
-Fixes of by one error in Gcx unittest
-Fixes printf spam when compiling druntime with -debug

These fixes were neccessary so I could start debugging my other pull request.