Smarty 3.1.21 upgrade (see changelog)