FFI nith: fix using `void*` for generics and nullables types in the light FFI