Fix circular references in component context creation.