bendc: added RootContext that captures decls and defs

The RootContext within the CodeGenerator class captures the declaration and definition statements. Each statement can be assigned a stage index for ordering, e.g. types before function definitions, etc.. The data is not yet stored in the backend repository.