Add explicit define for rb_ary_subseq
Add spec for rb_class2name and rb_class_name for an anonymous class
Fix rb_class2name and rb_class_name for anonymous classes

These should always return a string, not nil even for anonymous classes.
Fixes segfaults in the FFI gem. See #2749