fix env lookup issue in type_decl_stmt