initial forays into using Rcpp Attributes, added as<> and wrap for Dates