fix #2316: small ties
tweaks, including handling of seconds
rework algorithm to parameterize minTieLength
skip if tied notes not adjacent
fix tests
Merge pull request #735 from MarcSabatella/2316-small-ties

fix #2316: small ties