Resizing world correctly implemented.

There were problems when resizing to a larger world where periodic
boundaries did not get undone before.

Also removed the redundant gridSize in spgrid and replaced it by
world.worldSize.