Use proper type for index.

Fixes signed / unsigned mismatch.
Add aligned grid to debug ClickRegion bug.