reindex resets an element's ndx property on reassignment.