Faster generalized lists to handle resrouce chains (fix memory allocation/leak when some gated objects are active when destroying the context/isolate)