Fixed cloning when an object has multiple slots pointing to the same object.