Fixed all quirks in sync between LegendItems and TimeSeries after state load - changed all usage of cid to id and set id of LegendItems on initialize