smarty: Pass tuples, not iterable strings to the pattern.
smarty: Fix test failure with Python 3.1 and 3.2. Fixes #295
Merge pull request #296 from mitya57/smarty-fixes

Smarty extension fixes