title: Access last array element in swig template
body: <p>I have an array:</p>
  
  <pre><code>product.paths = [ text: 'hello', text: 'world' ]
  </code></pre>
  
  <p>How do I access the last element in a swig template tag?</p>
  
  <p>This element:</p>
  
  <pre><code>{{ product.paths[1].text }}
  </code></pre>