More work on ctypes+rcore