mrb: implement index resolution for accessor by mruby