scan.cc: change textual order of extract_unsigned and extract_int