Fix memory leak in string concatenation.
Add ALLOC macro.
Fix invalid read errors when doing gc.