use emplaceRef in join

And remove old trustedAllocateArray.
uninitializedArray is already trusted.
Merge pull request #2747 from 9il/join2

use emplaceRef in join