impovments to unique_list after code review on http://codereview.stackexchange.com; preperation for fix_mac_icon