use native loop instead of array.forEach() to fix alleged memory consumption issue in IE, fixes #16660 !strict