[subset] speedup cmap4 subsetting for large codepoint counts. (#3178) glyphIdArray generation implementation was O(n^2). Refactored to use a hashmap to reduce complexity. After the change subset time for a 22k codepoint subset went from 7s to 0.7s.