Epigenetic inheritance systems contribute to the evolution of a germline