Changes to facilitate inmutability of NamedVector. In addition, add two mutable maps to share integer and real variables across modules or iterations