Fix Issue 9212 - Associative array foreach iteration with immutable key