Fix Enumerable#slice_before arg handling

Emulate packEnumArgs in the slice_before definition in enumerable.rb
to ensure its arg handling behavior matches MRI