Correct behavior of chord symbols on linked staves/parts

Fixes two bugs - chords were being duplicated on linked staves within a part (they shouldn't), and they were *not* being duplicated in linked parts when not attached to a chordrest (they should).  I also added tests for these.  This replaces an earlier PR that no longer point to a valid branch.