Bug fix #133: Map.clear() does not remove the event listener