Communist parties lost Dalit support by treating caste as secondary to class