Improve int and real parsing.