Use [].forEach instead of for-..-in in evaluator

To prevent errors whenever the array's prototype is extended.
 (cmap is an array)
Merge pull request #4187 from Rob--W/issue-4183

Use forEach instead of for-in (was: Replace [] with {} in core/cmap)