[UPSTREAM] Upgraded smarty libraries

Fixes #1249 once merged.