Learning Equilibria in Games Played by Heterogeneous Populations