Feature/test nan inv sqr

#### Summary:
Added NaN tests for inv_sqrt in math/functions, agrad/fwd/functions, and agrad/rev/functions with doc on behavior at NaN.

#### Intended Effect:
Added NaN tests for inv_sqrt in agrad/fwd/functions, and agrad/rev/functions with doc on behavior at NaN. 

#### How to Verify:
Run test/unit-agrad-fwd/functions/inv_sqrt, test/unit-agrad-rev/functions/inv_sqrt

#### Side Effects:
None.

#### Documentation:
Added doc on behavior of inv_sqrt at NaN and partial derivatives.

#### Reviewer Suggestions:
Anyone.