fix template argument handling when using named arguments to 'render'