make a copy of the second argument to _d_arrayappendT to avoid aliasing
Merge pull request #3608 from rainers/issue12826

fix 12826: make a copy of the second argument to _d_arrayappendT to avoid aliasing