update signature functions Bag and ReferenceContainerIntersection