GROOVY-6887: AutoClone issue with CompileStatic
GROOVY-6887: AutoClone issue with CompileStatic (additional tests plus tidy doco)
GROOVY-6889: clean up generated code when using @AutoExternalize with @CompileStatic
doco tweaks and tidy up for GROOVY-6889 and GROOVY-6887