codegen: sketchy implementation of str-join; segfaults