Text this: Population diversity, division of labor and the emergence of trade and state