Editorial accidentals based on Sibelius hidden accidentals
Moved local variable definitions to their proper place
Correct handling of naturals and repeat accidentals (per-bar)
Cautionary/invisible accidentals always encoded
Fixed handling of repeated editorial accidentals