Refactor planeIndex to long

As all planar lengths are now longs, the rasterized plane index should
be a long as well. There could still be overflow issues with high plane
counts, but using a long index reduces that likelihood over an int.