If twig would output a PHP array as "Array" pass it through drupal_render() first.