merge() function for Collection class, bulk set() function for Model class