Make QueueOptimizer easier to read.

QueueOptimizer is really hard to read. Enough so that it's blocking my
efforts to streamline the representation used for operator lists.

This patch improves its readability in the following ways.

- More descriptive variable names make the sequence checking much clearer,
  as do additional comments.

- The addState() functions now return the index of the first op past the
  sequence, instead of setting context.currentOperation to the last op of
  the sequence.

- The loop in optimize() is clearer.

- The array modification in the fourth addState() function is much clearer
  -- we're just removing trios of ops.

- All four |addState| functions are now more consistent with each other.

I used some debug printfs to find documents where these optimizations are
used and then checked that the number of optimized ops was the same before
and after my changes.
Minimize memory usage of font-related arrays.

This patch replaces some vanilla arrays with typed arrays, and avoids
some array copying.

It reduces the peak RSS when viewing
http://www.dynacw.co.jp/Portals/3/fontsamplepdf/sample_4942546800828.pdf
from ~940 MiB to ~750 MiB, and reduces its load time from 83 to 76 ms.
Optimize common cases in hexToStr().

This avoids the creation of over two million array objects when viewing
http://www.dynacw.co.jp/Portals/3/fontsamplepdf/sample_4942546800828.pdf,
and reduces load time from 76 to 73 ms.
Converting PDFFindBar and PDFFindController to classes
Use strict equalities in web/ui_utils.js
Use strict equalities in web/viewer.js
Use strict equalities in web/document_properties.js
Represent cid chars using integers, not strings.

cid chars are 16-bit unsigned integers. Currently we convert them to
single-char strings when inserting them into the CMap, and then convert
them back to integers when extracting them from the CMap. This patch
changes CMap so that cid chars stay in integer format throughout, saving
both time and space.

When loading the PDF from issue #4580, this change reduces peak RSS from
~600 to ~370 MiB. It also improves overall speed on that PDF by ~26%,
going from 724 ms to 533 ms.
Add strict equalities in src/shared/fonts_utils.js
Add strict equalities in src/shared/util.js
Add strict equalities in src/display/api.js
Add strict equalities in src/display/canvas.js
Add strict equalities in src/display/metadata.js
Add strict equalities in src/display/pattern_helper.js
Add strict equalities in src/display/svg.js
Add strict equalities in src/core/annotation.js
Add strict equalities in src/core/arithmetic_decoder.js
Add strict equalities in src/core/bidi.js
Add strict equalities in src/core/colorspace.js
Add strict equalities in src/core/core.js