Merge pull request #140 from TheConstructor/resource-list-with-duplicates

#64854 Add preserveduplicates option to ResourceList