Re-factor parsing of the Linearization dictionary

This PR attempts to implement what @yurydelendik suggested previously in https://github.com/mozilla/pdf.js/pull/4145#issuecomment-32904343.

Fixes #4143.
lets keep hints as array: `this.hints = hints;`