gen: fix #minimal_registry to include the opaque intermediates as well
gen: fix #minimal_registry to include the opaque intermediates as well

Otherwise, the generated registry is not self-contained, as some
intermediates will not have their definitions.

doudou/modelkit-component,doudou/modelkit-component