Fix chunking

The change fixes/optimizes automatic chunking by choosing larger chunk sizes.
Chunk dimensions are not anymore required to by a factor of dataset dimensions, which fixes too-small chunks for large, odd-sizes datasets. Chunk sizes range from 64KB to 4MB.

This change reduces runtime of run_parallel_tests locally from 139s to 43s.