Remove IRState::toElemLvalue, fix IndexExp::toElem.
More flattening of IRState.