Small optimizations to number parsing.