(hopefully) fix slopalookup out-of-bounds for good now

By my understanding, the likelihood of the slope palette
lookup table exceeding its bounds grows as the width
of the window increases. On that basis, the table is now
2*MAXXDIM which should hopefully make an out-of-bounds
condition very unlikely. To help catch this in a debugger
I've added a bunch of assertions to test the bounds.