smarty: be compatible with Smarty<3.1.16