Bug fix in function.merge()
Added Topology.glue (and its unit test)