handle RARRAY_LEN and RHASH_SIZE appropriately