Added this failing test around GremlinGroovyScriptEngine:
Relates back to this issue from Rexster:
If you define a function and then try to use it in a closure, it throws a StackOverFlow error. There is a workaround which is shown in the test where defining the function in the same script issued via eval allows it to work fine.
Fixed #331 -- recursion bug.
This was due to a recursion bug in GremlinGroovyScriptEngine that is now fixed. Pushed/Deployed.