debugger/loadelf: perform writes using 32-bit accesses where possible.

This makes a big improvment to load performance over JTAG which is slow
anyway, potentially by a factor of 4.