Integrable systems and symmetric products of curves