fix(copy): clear array destinations correctly for non-array sources

Closes #8610
Closes #8702