title: Twig forgets array-keys
body: <p>I have a weird problem with twig in Symfony2. I am using the following array:</p>
  
  <pre><code>[days] =&gt; Array
      (
          [1] =&gt; Array
              (
                  [money] =&gt; 9
              )
  
          [2] =&gt; Array
              (
                  [money] =&gt; 21
              )
  
          [3] =&gt; Array
              (
                  [money] =&gt; 38
              )
  
          [4] =&gt; Array
              (
                  [money] =&gt; 6
              )
  
          [18] =&gt; Array
              (
                  [money] =&gt; 6
              )
  
          [19] =&gt; Array
              (
                  [money] =&gt; 3
              )
  
          [31] =&gt; Array
              (
                  [money] =&gt; 11
              )
  
      )
  </code></pre>
  
  <p>to test this I used the following code</p>
  
  <pre><code>{% for key in days %}
    {{ key }}&lt;br&gt;
  {% endfor %}
  </code></pre>
  
  <p>but the output shows the following</p>
  
  <pre><code>0
  1
  2
  3
  4
  5
  6
  </code></pre>
  
  <p>but it should look like this</p>
  
  <pre><code>1
  2
  3
  4
  18
  19
  31
  </code></pre>
  
  <p>Looks like twig creates a new array with new indexes. Is there a way to get the right index from array?</p>
  
  <p>With <code>var_dump($days)</code> in php I can see the right index, so the "problem" is related to twig.</p>