The RNA-DNA world and the emergence of DNA-encoded heritable traits