Convert UDF collection values to YYYY-MM-DD when saving.

Fixes #1657
Merge branch 'release'

Merging release back to master after cherry-picking 1f0f44e17f to ensure
that the next merge from master to release can be ff-only.