mrb: bind bulk
mrb: move resolving index code to mruby