create a new uniqify_atoms() to properly handle a list of atom instances.