Reapply extensions on relations in Marshal.load.

[ fix #2822 ]