fix Issue 12412. isNaN and brothers update: CTFE-able, returns bool, unittests

minor update

remove else after ctfe