Fixed usage of getNumberOfCollectionElements: replaced enclosing class with element class
Pass collecation/map element type to DataProviderStrategy.getNumberOfCollectionElements()