Converts Java-style array instantiation to Groovy-style.