Realization of debugging (and respective tests) for collect iterator.
#36