Make duetto.upcast.collapsed fully typed