use emplaceRef in join

And remove old trustedAllocateArray.
uninitializedArray is already trusted.