bug fix: open typedef functionality, codegen process array