Why maintain an array and an object map instead of just doing
```
variables[variable.name] = {
name: variable.name,
node.variable.identifiers[0],
used:...
}
```
Seems like a little less error prone solution.