Use isnan() to check for NaN values

isnan() is specified by POSIX.1, so if you don't care about Windows,
this is as portable as can be.
optional::reset is deprecated since 2007
Merge branch 'PlugNPlay' of github.com:scj7t4/FREEDM into PlugNPlay
Merge branch 'isnan' into PlugNPlay