Force reload of collection UDFs after saving them in order to retrieve ids

Fixes #1534