support for non-string values of 'widgetParent' option