GROOVY-7072: NPE with spread operator and @CompileStatic with a method that returns an array