Neutrinos and ultra-high-energy nuclei from blazars: From a single-source model to a population study