codegen: preliminary code for str-split

Should it split into a vector? Better make everything an array.