Adds firmer argument validation to SC.IndexSet methods in debug mode.