As surfaced in #68 a consistent encoding of `staffDef`, `layerDef` and `staff/@n`or `layer/@n` pointing to them should be implemented.