Generalized tuplet and beaming helpers (Fixed #41)