Heterogeneous Folding and Function of Small RNA Motifs: The Hairpin Ribozyme and a Translational Riboswitch.