Key signature

Key signature changes work as time signature. That is, there are encoded in a scoreDef when the same for all staves or in staffDef when not.

Relevant tests: