DRILL-3876: Avoid an extra copy of the original list when flattening
This only fixes a basic case, a more complete refactoring of the rewrite rule could avoid copies in cases with multiple flattens, this will be addressed in DRILL-3899.
close apache/drill#187