Fix Rcpp::Rcout wrapper bug by defining the relevant template in the Rcpp module file.