Bugfix: grid/areas with width or height=1

The grid wasn't able to process areas with width=1 or height=1 properly.