A Stone-Weierstrass theorem for MV-algebras and unital $\ell$-groups