JIT: fix PPC_FP snan/qnan handling

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