Jbig2 optimizations

~13% speed improvement in JBIG2 decoding.

Measured 10x the decoding time of ten 33M pixels JBIG2 images:
Average decoding time went from ~1440ms to ~1270ms in Opera, and ~1240ms to ~1060ms in Aurora