Fix bug with nested lists in `-remove-at-indices`