[SPARK-2994][SQL] Support for udfs that take complex types