allow string IDs for models with grid

This is necessary for SCiMap which uses string IDs for some models.