Fix util.minibatches to work with lists
clarified usage in docs and added a comment