rhoruby: check len pointer instead of val in _to_str_ex