[PATCH 2/3] jscript: Use LIST_FOR_EACH_ENTRY_SAFE to clear Map and Set objects.