template impl changes during update fixed

must not insist on element.template.id but on element.templateId. controller must ensure this field consistency during
update()