Using C client to pack sets and maps