ref_counter: fix return of assignment operator
explicitly reset all raw member pointers