fix Issue 12412

Issue:
https://issues.dlang.org/show_bug.cgi?id=12412

Make isNaN, isNormal, isSubnormal, isFinite, isInfinity CTFE-able.
I found this style in std.math. if it is not shared, it can be evaluated in ctfe mode by compiler optimizations.