Bug fixes and improvements to fraction folding.