Issue 517 (Only the direction indicator is duplicated when duplicating link shape in link shape editor)

For issue #517, postponed to 5.0.6.