Making sure that the return values of scalar UDFs are correctly formatted as SQL values.