all_identical function

All members of a list have the same elements