Update main.hpp

define RARRAY_AREF for older ruby versions