Twig_Template does not accept an object for render method

Twig_Template render method accepts arrays not objects, the all() method of Slim\Helper\Set seems to work for this issue.