Fix bug: ``CopyModifyMergeRepositoryTool.manage_setTypePolicies`` method modifies sequence while iterating over it.