Fix settings export.

The current code does not work for list values.

Change-Id: I21ae1dcdc1185c48bbccc1ed94b31259f41fb5a4
Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com>