Made RubyString#positionEnd a static utility method so it can be used outside of RubyString.
[Truffle] RubyRegexp#scan no longer get stuck in an infinite loop and can now return captured values.