stan_rdump: logical variables converted to numeric before dumping

stan_rdump was ignoring logical variables; the patch converts them to integer before dumping them.