Added handling for some Chrome weirdness with function serialization.
Added support for explicitly specifying the widget class in the child tag for child widgets.