add Mrb open&close
add ToValue trait
allow dead code