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