Fix regression caused by using compiled templates in icon rules. The fir...

...st template was used for all the composed icon rules.