Generate a scoped ID for a widget instance.
The widget definition key
Instance index within parent
User-provided suffix
Scoped ID string like "Counter_0_inc"
Generate a scoped ID for a widget instance.