Made WeakSet::allocate() static and removed its JSGlobalData argument