Created mutable array and mutable dictionary subclasses that keep a weak reference to all objects added to them.