Convey static array sizes with a constant instead of manual immediate values.

This makes the scaling code of the historical view safer and more general. It also paves the way for different scaling should that be desired.