Feature/issue 860 erf nan

#### Summary:
Fixes issue #860. 

#### Intended Effect:
agrad/rev/erf should now return NaN for gradients and value when passed in NaN.

#### How to Verify:
Run test/unit-agrad-rev/functions/erf

#### Side Effects:
None.

#### Documentation:
None. Should document behavior of function when given NaN together with other functions.

#### Reviewer Suggestions:
Anyone
"* 0.5" instead of "/ 2.0"?