Fixed assignment of element_index to multivector

This was broken by expression engine refactoring.