Allow setting widget.data from upcast.