Lie algebra contractions and symmetries of the Toda hierarchy