Coherent systems on curves of compact type