Fixing NPE when submitting grouped questions that are not of type
repeat, and more work on the table widget.