This fixes issues with anonymous instances in sections. In Emacs, we would get spurious error messages such as: invalid parameter/variable declaration, '_inst_1' has already been declared This commit also adds a regression test for the problem.