SVGOverlay: remove mouse event functions from node and connector
when obliterating them.
Fixed numerous accidental global variables.