Adding MaintenanceWindows and custom query serialisation

This ensure arrays are correctly serialised in the format <key>[]=