Fix handling of references to component's typedefs