Improve and unify error messages

Now the errors given for an unknown layout in copystyle and obsoletedby provide
the same information.