std.array.join optimisation

update PR
Merge pull request #2746 from 9il/join

std.array.join GC optimisation