Optimize sw/lw even under safe memory.

They're very common instructions, so shaving cycles helps.
Also jit sh and lhu, which are pretty common ops.
Avoid a func if possible when fastmem is off.