template compiler cleanups
Merge remote-tracking branch 'origin/master'