Correctly set the `ptr_for_ref` arg on `write_c_type` calls in enum printing