Fix server error when attempting to update a repository that defines set_environment tool dependency types.
Fix for DatasetListWrapper.
Merge fix from stable.