fix SEGV in mruby_set and mruby_set_inline