Ensure deepcopy clones using the correct type - PYTHON-459