Fix iteration through lists nested in other iterables