deep copy of dict, array