fix bug in rstan 1.3.0, output variables in csv files using col-major
unit tests ouside rstan pkg for stanfit object
Merge pull request #1 from stan-dev/feature/fix_csv_row_order

Feature/fix csv row order