#2897: Ensure cloning only happens in the Dataset constructor and ModifiableDataset cloning constructor.