Helium Synthesis, Neutrino Flavors, and Cosmological Implications