Commit
439535c09e75c581763ec1fd2da237e4dc7d4c11
by peter.peqbandaid for #592 (generic modules in vscode)
root cause is that module instantiations contain wurst types, which
contain references to AST elements, which are outdated after copying the
model.
The better fix would be to remove the AST references from types.
(commit: 439535c)