add cast to return from aget_index(); ref #2627
avoid wrong ArgumentError from mrb_get_args() when surrounding method takes more than one argument; ref #2627