Learning Homophilic Incentives in Sequential Social Dilemmas