fix hairpin & trill length

With the recent change in hairpins, the layout became wrong - it goes only to the end note, but not to the "end" of the next note's duration.  This fixes that, and also implements the same for trills, which had the same issue anyhow.  This also fixes a couple other layout issues with trills and ottavas, including http://musescore.org/en/node/29501.  All in all, things should be much better.