Using professional version v.2.1 build 90316
If I call
g.setSerializationLevel(false, false, true) then call
varg.serialize()
With such settings you will get all data of grid and head structure with description and settings of main header line.
Beware that only top line of header will be included in serialization. Multi-line headers will not be serialized correctly.