Stream.__iter__ has bugs