Optimized putBinaryImageData for GRAYSCALE_1BPP

The following changes make putBinaryImageData 2.2x faster.

* Use a Uint32Array to draw whole pixels instead component by component

* Unroll the inner most loop

* Added lazy PDFJS.hasCanvasTypedArrays, PDFJS.isLittleEndian and compatibility
Uint32ArrayView for browsers using the old CanvasPixelArray
Merge pull request #4466 from p01/Faster_1BPP_image_drawing

Faster 1 bpp image drawing