[SQL] support udt to hive types conversion (hive->udt is not supported)

@marmbrus
The ordering doesn't matter here. I put it to the last so people know that it won't change any existing behavior.