More code and tests written for deep cloning.