States, tribes, castes: A historical re-exploration in comparative perspective