JIT: fix snan/qnan handling in float loads/stores

Also simplify the conversion code with some suggestions by flacs; might even
be slightly faster now despite handling more cases.