Heap Fixes

Dynamic memory is a tricky monkey to deal with and is even trickier with
garbage collection. A number of heap fixes with strings are now fixed
and the compiled code is even more stable.