Stateless, isolation-safe component registry and factory for Detrium.
Replaces the legacy mutable GLOBAL_CONFIG pattern so multiple DETR models and
configurations can coexist in the same Python process without state leakage.
Statelessly create a registered component using `cfg` as an isolated config context.
Never mutates either the registry's stored defaults or the caller's `cfg` dict.
Register a class or function into the default Detrium registry.
Supports `@register()`, `@register(name="Alias")`, `@register("Alias")`,
or `@register(force=True)`.