chan: Sort channel mode bits
mode: Fix debugging with lists
mode: Implement list handling.
core/mode: Allow lists to be sent to the user