rational: fix zero denominator bug when cting from string.