Disparity between Double.NaN() and Double.NaN on macOS and .NET

Done in https://github.com/remobjects/islandrtl