Adds separator and returns the index of added separator.
Separator is added after the last element that has been inserted using AddItem() or InsertItem().