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

Upon further inspection, the "map" property in cmap is a sparse array.
`readToUnicode` in core/evalutor walks over all properties using a for-..-in loop, which suggests that "map" should really be a kind of dictionary, and not an array.



Fixes #4183.