Correct typo in documentation of each/foreach functions.
Fix typo in test used for investigating #19632