[Conversion INI -> JSON using Qt5: Fix several nasty bugs. Implement saving using WzConfig.