Move setValue impl for template to inline.