Fix reference counting bug in Tag::operator=