Fix bug deepcopy on ConnectedQuerySet

See (internal) ticket #6005
Merge branch 'bug/6005/deepcopy_queryset'