handle optional layout
Merge pull request #5 from metaborg/hotfix/ppgen-for-kernel-syntax

handle optional layout in template conversion