DRILL-1673: Fix for error with flatten function when used with nested lists.
Added a small reference implementation of flatten for generating baselines
remove now-unneeded code in EmptyValuePopulator as we are guarenteed to have the first offset initialized to 0.