src/random: add some const and unsigned
src/linreg_lapack: add some const
src/hmm* and src/cross*: add a bunch of const