@Override
    public String toString() {
        return array.length == 1 && null == array[0] ? "[null]" : Arrays.asList(array).toString();
    }
@author Marko A. Rodriguez (http://markorodriguez.com)
gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/util/iterator/ArrayIterator.java