[PATCH v2 1/2] jscript: Only remove one reference to each entry when clearing the Map or Set.