rstan: add rng for write_array
Merge branch 'master' of https://github.com/stan-dev/stan