adapt to const correct Rcpp

Related to RcppCore/Rcpp#211

The code assumed that `Vector::iterator` and `Vector::const_iterator` were the same type, and so the package failed to compile on a fixed version of Rcpp. 

Expanded the test matrix on travis so that it gets tested against both const correct and not const correct Rcpp.