[grids.defaultimpl] small fix
[grids.rect] disallow generation of too small grids

Entities of a grid are not allowed to have multiple subentities
which are identical.
[grids.subgrid] add SubGrid