Fixup unsafe ops, add jit test.