added stan/math/erf with tests (including nan test)
fixed agrad/rev/functions/erf so it passes NaN test