pub fn dispose_component(id: &Ustr) -> Result<()>
Safely calls dispose() on a component in the global registry.
Returns an error if the component is not found or if dispose() fails.