* array.c (rb_ary_shift_m): use shared
  instead of MEMMOVE if with arguments

* test/ruby/test_array.rb (test_shift2): add test