Make channels work correctly in maps and sets.