Fix flonum parsing bug and add a test for it.