use emplaceRef in join

And remove old internal `trustedAllocateArray`.
`uninitializedArray` is already trusted.
See also #2746 
Yes.