Fix PairGrid

Two fixes:

- The size was getting calculated wrong
- Stuff was failing when specific vars were passed in arrays (closes #267)