Ignore duplicate names in potential module list for reference resolve.