fix indexing for negative voxel coordinates

When the coordinates are negative, merely adding `size` isn't enough. This fix adds size to the modulo of size and then takes the modulo of THAT. Negative numbers under modulo behave completely silly!