Feature/issue 216

complete fix for abs and fabs applied to NaN in agrad fwd and rev.