allow vars to have prefixes matching types by checking var names in declarations are not continued
Merge pull request #1046 from stan-dev/bugfix/issue-866-vars-prefix

Fixes #866. Bugfix/issue 866 vars prefix