beam/inmem: fix nested in/out channels in each message