Issue 7942 - Appending different string types corrupts memory

https://issues.dlang.org/show_bug.cgi?id=7942