Make sure object IDs are initialized to -1.
In a measure-range, the first measure can also include alternative ending specification.