fix various bugs related to list handling of channel variables (issue #5548)