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

Fixes #1534
Merge pull request #1537 from maurizi/api/return-ids-with-plot-collection-udfs

Reload collection UDFs after saving them to retrieve ids