DRILL-1118: In case of error, always set QueryState to FAILED

+ Added a null check in o.a.d.exec.physical.impl.producer.ProducerConsumerBatch.clearQueue()
DRILL-1113: Add configuration in DrillClient to encode complex/repeated types as JSON string
DRILL-1060: Support ComplexToJson for Array Data Type