Make explicit context overwrite kwargs for templating, Fix #5161