update typedef_simple test and typedef_array test
use namespace to generate c code for identifiers
add codegen for typedefs