Fixes an issue with removing ids from RelIdArray

where the iterator state length wasn't updated when the block length
decreased its length after a removal, so the iterator would iterate beyond
what it was supposed to.