Improvements to parse-integer