How to fix the «Error filtering template: Unable to unserialize value» Magento 2.2 failure of a CMS widget rendering?

I have fixed the problem by resaving the problem content pages / blocks in the backend: it forced Magento 2 to convert the problem widgets to the new format.