Converting from/to keyvalue-based config template