fixed deep(ish) copy of array