DRILL-993: Remove redundant comparison in comparison operator generated by FreeMarker template.
DRILL-772 :  Change comparison operator to use NULL_IF_NULL policy, when inputs are nullable type.
DRILL-1006 : Fix case expression when conditions are expression of nullable types.
Fix bug in dynamic allocation