Merge branch 'feature/issue-661-reimplement-error-handling' of https://github.com/stan-dev/stan into feature/issue-661-reimplement-error-handling
clean up error checks in distributions