presidentbeef/brakeman — pull request #145 by presidentbeef (2012-09-11 00:46:37+00:00)
Title: Fix array index processing yet again

I have no idea how this happened but there are tests now so hopefully it is fixed forever.

Brakeman does simple processing of arrays and can sometimes pull out elements.

For example Brakeman would change this:

```ruby
a = [1, 2, 3]
b = a[2]
puts b
```

to this:

```ruby
a = [1, 2, 3]
b = a[1, 2, 3][2]
puts 3
```

But this was somehow broken. Now it is fixed. And there are some tests for the alias processing stuff.