Improvements to the Rational template. It now supports I/O operators.