Index objects by component type, change getComponentInstance