Add overflow checks to parse_number/parse_hex/parse_oct