When combining two grammars, make sure to keep only the most restricted production
Also run the dup command over the whole grammar, since SDF works this way.

Moreover, removed some small debugging println's