Revert "A temporary fix for combined expression test in vector_arithmetics"

This reverts commit 9e243394fbfaf32153033749fccfc7e75484f532.
Moving result of element_index() into vector_domain

This solves issues with dangling references in expressions not containing any
vectors.