Made iters.flatten work for any nested iterables not just lists