Add support for UNNEST

rename `i` to something more descriptive like `replicateChannel`