array.c, enum.c: select with arguments

* array.c (rb_ary_select), enum.c (enum_find_all): return elements
  matched to the arguments if given.  [GH-561]