Nucleosynthesis at the isotopic level: how chemical abundances enhance our understanding of globular clusters and dwarf galaxies