update attributes support code to match the code in Rcpp98
pull Rcpp98 attributes support code