Change template var 'extra_params' from string to dict