In Mendix, lists are handled in many situations as Sets, but not everywhere. In java actions for example you can use real list objects, with multiple times the same object.
From the code, for the list operations the lists are converted to sets first, so all occurrences will be removed. I consider this a bug or at least a major inconsistency, so you might want to file a bug report for it.