Precalculate _maxNodeOffset for tree mode.

In JavaScript 1<<48 won't output the correct value,
since it uses 32 bits numbers for shifts.