Anyway, depending on what exactly your code is doing, maybe you should consider accessing your Array<LayerOption> directly (especially if some node removal is involved). You should be able to do it by:
- creating the node without Ctrl just to get node id (which is int)
- then use the node id you got with Array::At method to create (or recycle) the widget, use GetNode/SetNode to assign Ctrl
- then you can use the id of node as index to the array