Omit snaps from id transformation

Util for replacing replacing url IDs to persistent IDs in collections. During this, skip snaps as well as already-replaced IDs.