Fixing a SWIG problem for RationalFromDoubleException.