Bar lines: property defaults for span parameters (staves, from, to) depend on staff span and number of lines.
Align with recent commits.

It also fixes #20424.