The new serializer avoids to write default values in text mode, so the loop mode is not always correctly set."