attempt to fix compiler ambiguity (pretty sure this is fixed in next Rcpp)