Dup autosaved relations for inheritance.

[ fix #2821 ]