Fixed an edge case crash for marshalling cg_t.