Some tweaks to the subset class (allow const/ref, add operator SEXP