Added clone() to Edges and Connectors so that when you collapse a category,
it is not directly editing the edges inside the EdgeProvider. Fixes bug SPC-787.