fix AVERAGE, AVERAGEA and VARA implementations, add more tests for them
Merge branch 'flatten_ranges' of github.com:CrowdProcess/formula.js into flatten_ranges