Fixed template argument shadow issue for ref_count_ptr.