expanded_def now is gen_hexarr, generate types lib now completed