Fix settings import/export.

We forgot to update this feature when switching to JavaScript
representation.

Change-Id: I6cbd8f9e0f39e18b9e2344124fa9e4811bac6686
Reviewed-by: Joerg Bornemann <joerg.bornemann@theqtcompany.com>