Correctly set the `c_ty` arg on `write_c_type` calls for generic params