Add tests for repeated slicing.

Detected a JRuby byteslice bug, where the string offset from the first
byteslice was used twice in the second byteslice.

https://jira.codehaus.org/browse/JRUBY-7125