give topology hash a custom DESTROY method to help garbage collection #4

Circular references in the topology data structure seem to thwart garbage
collection. We now bless the topology hash into package "mgd_topo" that has a
DESTROY method that undoes some cross references, so garbage collection works.