Grid: make sure the last grid class is also generated. Fixes #18