Fix some bugs in ipc_deliver

1. Issue#72
2. Fix typed message is not copied to receiver.
3. Ipc can be issued only when both sender and receiver are in blocked state.