Fix problems caught by replacing WTF::Optional with std::optional
Created attachment 398982 [details] Patch
Looking for a reviewer for this. It compiles and passes all tests.
Committed r261546: <https://trac.webkit.org/changeset/261546> All reviewed patches have been landed. Closing bug and clearing flags on attachment 398982 [details].
<rdar://problem/63121810>