change dispatch to return dispatch_iter
fixup cleanup impl
add iterator support in hdfstore