Implement comparaison operators for ref_count_ptr