Flatten ranges

We found some formulas that work with multi-dimensional arrays in Excel but not in formula.js so we're fixing the ones we find and adding tests.