GROOVY-7140: Optimize list literal as Foo[] into direct array creation