mruby: implement scan_info_build() in mruby

Yay!