Fix uniq/uniq! with block for array slices

Avoid adjusting for slice offset twice.
Merging with jruby-1_7