Moved all CObject management from CInstanceManager to CObjectManager