Molecular complexity favors the evolution of ribopolymers