Allow indexed access to JSON arrays.

Limited but useful acess to Haskell tuples represented as arrays in JSON:

```XML
<thingy>
    <value var="foo.1.bar"/>
</thingy>
```