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

Should fix issue #2093

Whether we want to generate code with 1/0, 0/0, -1/0 instead of relevant field access to Math statics or not is another matter ;) Certainly this way is simpler.