Metabolic complexity in the RNA world and implications for the origin of protein synthesis