AgaviTemplateLayer possibly overwrites given parameters with defaults

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`.