if batch generator has len(), then use it to specify iteration_size for Dataset

not sure how generally useful this is but it reduces the amount of code the user writes (at least in my case)