compatibility fix for rb_ary_new_capa