reordered terms in term grammar to fix issue #239
test file from Bob
silencing 1 doxygen warning
Merge branch 'develop' into bugfix/issue-239-inf-vars
removing compiler warnings from tests
Merge pull request #528 from stan-dev/bugfix/issue-239-inf-vars

Fixes #239.