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

...ses

Fixes #7915