The Test Collection for Duplicates component is fairly easy to use. You populate the Data Type and Array Variable Name to get the array we're checking for, then you have the option of outputting a distinct value list. If you use this option, you can overwrite the exact same array you specified in Array Variable Name to make that list distinct.