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

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