Flatten ranges

The following fixes promised in https://github.com/sutoiku/formula.js/pull/20, will be still adding more, these are good to go but I will be making another PR later if you merge this one so maybe don't merge just yet, or do it, either way it's fine.