Couple of fixes

Hello! I made a couple of fixes here: one for the multi-column legends (clicking on the color boxes didn't work there) and one for the legend.hidden option's performance.