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.
use `this.length = length;` without shadowing (here and below)