Validate default values on UDF fields.

It is convenient to specify a default value for UDFs (especially
collection UDFs), but we should validate that the default is a valid value
Merge pull request #1514 from maurizi/udf-default-values

Validate default values on UDF fields.