Fix some bugs in ipc_deliver

1. Issue#72
2. typed message would not be copied to receiver.
3. Can not do ipc while thread is not in SEND_BLOCKED or RECV_BLOCKED