Close GH-2: avoid using (new Set()).forEach.