added NaN test for check_consistent_size
added doc in code for check_consistent_size
Merge pull request #910 from stan-dev/feature/issue-891-check-consistent-size

added NaN test for check_consistent_size