Added Smarty_Internal_Template constraint for "$smarty" parameter in smarty custom plugins