Upgrade swig trans tpl helper
Amend swig test

Outputting a single variable would trigger an error
without the fix provided in this PR.