core: Widget use actual widget reference instead of proxy ref when

adding to another widget.
 closes #1322.