Ensure contents get retained when making mutable array copies