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.
nit: two comments above about setting properties and optional parameter are obvious we can remove those (also extra line breaks between properties assignment can be removed as well)