group parsing and clef parsing fix (todo: implement Clone() for group references)