Fixed bug in deepCopy thay didnt deep copy array contents