fix for GROOVY-2606. OptimizerVisitor was used twice, but it is not designed to be sued twice. I changed this, but the change is very instable. Better checks are needed here in the future.

git-svn-id: http://svn.codehaus.org/groovy/trunk/groovy/groovy-core@12198 a5544e8c-8a19-0410-ba12-f9af4593a198
2 files changed