Use RARRAY_AREF and RARRAY_CONST_PTR for Generational GC.