Handle nan/inf/-inf in float to haxe expression code.

Should fix issue #2093