Added applyToAll function to base collection, which applies the given fn to all models