Merge pull request #18292 from smirnov-alexey:as/osd_serialization
[G-API]: Support render primitives serialization
* Add GOpaque and GArray serialization support
* Address review comments
* Remove holds() method
* Add serialization mechanism for render primitives
* Fix standalone mode
* Fix wchar_t error on win64
* Fix assert on windows
* Address review comments
* Fix GArray and GOpaque reset() method to store proper kind
* Reset wchar before deserializing it
* Fix wchar_t cross-platform issue
* Address review comments
* Fix wchar_t serialization and tests
* Remove FText serialization