Small optimization of voice sort
More thorough check of references to tuplets in chords and notes