GROOVY-6889: clean up generated code when using @AutoExternalize with @CompileStatic
Merge pull request #462 from paulk-asert/groovy6889

GROOVY-6889: clean up generated code when using @AutoExternalize with @C...