DRILL-1636: Shorten the output of toString() methods of HiveTable and HivePartition.
DRILL-1634: Fix issue in complex type expression type resolution, when Drill queries a nested array.

code clean up.
DRILL-1635: Propagate detailed error information when Drill sees a SQL parser error.
DRILL-1470 : cast into varchar should recognize the length parameter in varchar. Fix casting function implementation: the length parameter should mean # of chars, not # of bytes.

New unit test case to verify the result from cast function.