Fix for Smarty's apparent lack of namespace support