public static <T> GValue<T>[] ensureGValues(final Object[] args) {
        return Stream.of(args).map(GValue::of).toArray(GValue[]::new);
    }
The elements in object array argument are examined to see if they are {@link GValue} objects. If they are, they
are preserved as is. If they are not then they are wrapped in a {@link GValue} object.
gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/process/traversal/step/GValue.java