When working with elaborated transformed network direct all type declaration imports to the type declarations in the top network. To make sure that the declarations corresponds to the XML read top network. Maybe should fix variable imports also.
Annotate variable memory category placement, based on previous annotations.