added NaN test for square
added NaN test for square
added doc for square
merge develop
Merge branch 'develop' into feature/test-nan-square
Merge pull request #995 from stan-dev/feature/test-nan-square

Feature/test nan square