risib/riself cross functions for HMM

 + a bunch of minor things like Rcpp:exception