Snapshot/Restore: Make sure indices cannot be renamed into restored aliases

Fixes #7915