codegen, toplevel: declare a global value_t type