use emplaceRef in join

And remove old internal `trustedAllocateArray`.
`uninitializedArray` is already trusted.