Fix AgaviTemplateLayer default parameters merging

The default merging of parameters in the `AgaviTemplateLayer` constructor is broken. Setting `module` and/or `template` values via constructor always leads to those parameters being `null`.