Fix bug: update cell iterators when size of grid is changed.

The bug appeared when the grid size was changed during simulation
in the interactive version.
Merge pull request #57 from aipp/master

Fix bug: update cell iterators when size of grid is changed.