Added support for Gremlin's 'tree' step in GremlinMethod