Fix compound index parsing

I got some strange behavior when trying to create a unique compound index, and traced it to an invalid assumption in the index syntax parsing.