Array working

- Add array memory release if isCopy == true