Increase terrain page index limit to 0x7FFF

Makes the maximum terrain size virtually unlimited.
Fix incorrectly scaled terrain pages.

This +1 difference caused some floating objects and misaligned geometry,
especially when many pages away from the origin.