generator: add write_alias and write_opaque_struct
generator: add make_path