Fixed a bug in task saving.

Passing along a ConfigObj with a wrong indent was likely to cause a bug when writing. Now simply pass a dict.