Added deletion of local variables to game object repositories when the parent object is deleted.