Made vector element extraction work at term level.