DRILL-1643, DRILL-1665: Flatten fixes
 - Fix repeated map vector to correctly report value count
 - Update flatten so init variables are reset for each new batch.
Remove extraneous System.out.print statements.