SERVER-10471 merge index bounds, enumerate based on indices, bug fixes