Using custom marshalers should simplify part of the code and, hopefully, allow for an easier usage of the new GR API from [DSS C-API 0.10+](https://github.com/PMeira/dss_capi/blob/19491a372664b37746cd83cc1532fadc45fe3d96/docs/usage.md#global-result-gr-new-in-v0100).