Initialize default parameter values on root templates
Fix comparison in switch/case
Ensure enums are always compared by string representation
Add enum comparison unit tests