model loader fix

when setting collection.url in the loader, wrap call to each collection's url function in a closure

fixes issue where the url for the last collection defined in the collectionTypes
object would be requested for each collection