Cleanups.
Important fixes in grid_t ctor. New grid_t resize function.