Fixed bug: block merging non-disjoint groups.

Groups f and t temporarily both contain block 'to'.
We detached 'to' from t, but were not throwing this detached group
away, so any connections it had would be duplicated in f, causing an
error. We properly throw it away now.