Feature/issue 891 check consistent sizes nan

#### Summary:
Added NaN test and doc in code for check_consistent_sizes.

#### Intended Effect:
Added NaN test and doc in code for check_consistent_sizes.

#### How to Verify:
Run test/unit/math/error_handling/check_consistent_sizes

#### Side Effects:
None.

#### Documentation:
Added doc in the code.

#### Reviewer Suggestions:
Anyone.