title: Twig - Output array key if array is referenced
body: <p>I have a series of templates which target the Twig variable <code>{{ file }}</code>, which currently outputs the file's src e.g. <code>"/path/to/file.jpg"</code>. </p>
  
  <p>I want to update the contents of <strong>file</strong> to an array so that it stores multiple properties e.g. <code>{{ file.src }} {{ file.size }}</code>.</p>
  
  <p>If I make this change then all uses of <code>{{ file }}</code> will output <strong>Array</strong>. </p>
  
  <p>Is it possible to set Twig so that it will instead target the first property of the array? In this case <code>{{ file.src }}</code>.</p>
  
  <p>Many thanks!</p>