allowed for nested joins

From what I could see there wasn't any information I could use that would give me the array index of a particular `rightRecord`, if the join involved an array. Instead I just wrote a small function called `correlate()` that correlates a `rightRecord` with its array position based on the `leftKeys` and `rightKeys`.

This works now for joins involving array data.