fn apply_attrs_to_sexp(s: Sexp, attrs: &IndexMap<String, RValue>)
Apply RValue attributes (dim, names, class, dimnames, etc.) to a SEXP.