common: enhance iod command

Support iod command with a length parameter, like
=> iod{.b, .w, .l} {addr} {len}

Signed-off-by: Bin Meng <bmeng.cn@gmail.com>