fix detection of rb_ary_subseq(), use mkmf's have_func()

* See tenderlove/racc#34 and 1b1942a0