Hey!
I can confirm this behaviour, but as I’ve found on my installation, it seemed to be caused not by update of Autoptimize, but by the update of WordPress SEO plugin, that “Implemented new sitelinks search box json+ld code” (according to their changelog).
In their latest update they added a script of type "application/ld+json"
which was inproperly processed by Autoptimize.
I’m not sure this is the same case, though, yet the symptom is the same. ^^’