Merge module_vars into inject during template instead of updating

This way we won't overwrite values that are stored in the inject
with module_vars that should be lower precedence.

Fixes #7510