For instrument changes, a new <staffDef> should be written, especially in the case where the new instrument uses a different transposition.
<staffDef>
Somewhat related to #82.
See discussion here