Fix Issue 9212 - Associative array foreach iteration with immutable key
Merge pull request #2864 from yebblies/issue9212

Issue 9212 - Associative array foreach iteration with immutable key