fix unresolved templateString reference causing NPE. fixes #148
fix define literals without a corresponding parameter being deleted as unused. fixes #149