GROOVY-6887: AutoClone issue with CompileStatic (additional tests plus tidy doco)