Few small fixes for analytic functions

1) Fix mem usage after free in AnalyticEvalNode:
   current_tuple_ cannot be allocated from the output_tuple_pool_ which
   occasionally transfers resources to the output row batch pool because
   the same tuple is reused.
2) Analysis should allow windows with UNBOUNDED PRECEDING to X PRECEDING
   and X FOLLOWING to UNBOUNDED FOLLOWING.
3) Fix a few bugs in the distributed planning.
4) Adds a few more tests and allows running the tests with the distributed
   plans.

Change-Id: I6bdc1e35b3d30b6e1e50ca85d78b75ef70469de5
Reviewed-on: http://gerrit.sjc.cloudera.com:8080/4022
Tested-by: jenkins
Reviewed-by: Matthew Jacobs <mj@cloudera.com>
Tested-by: Matthew Jacobs <mj@cloudera.com>
(cherry picked from commit 788b027439a03a1cc3378ff0191487577608e8b7)
Reviewed-on: http://gerrit.sjc.cloudera.com:8080/4068