to_cell_grid now supports rectangular cells, fixed bug in gpi2cell