data preprocessing, convert logicals to integers
Merge branch 'develop' of https://github.com/stan-dev/rstan into develop