Change widget children List to CTuple.

Also removed some unused references in the widget code
and added support for tuples in the pack/unpack code.

related to #5199
closes #5205