Implement contains/containsAll methods for DynamicList.