record types -> ctypes : automatic generation of custom type compatible with SPOC (TODO : remove useless copy and update SPOC to handle Ctypes arrays