Added garbage collection to objects, children and components.