Fixed usage of getNumberOfCollectionElements

There is similar issue with number of elements in map.

Additionally I had to split RandomDataProviderStrategy into abstract and final classes to be able to override number of collection element strategy to be used in unit test without implementing DataProviderStrategy from scratch.