scan.cc: move up static get_array_type function in program text