Fix RationalTypefactory::fromFloat not recognising zero