[CDF-25250]🖊Dumping transformations with schedule and notifications (#1754)

# Description

**Bug descriptions** The `CogniteResourceList` says it takes an
iterable, however, it exhaust it in the error check and thus you get an
empty resource list. This cause the transformation schedules and
notification to be skipped.

## Changelog

- [x] Patch
- [ ] Minor
- [ ] Skip

## cdf

### Fixed

- Running `cdf dump transformations` now includes schedules and
notifications.

## templates

No changes.
