Copy everything inside expressions except for vectors
A temporary fix for combined expression test in vector_arithmetics

Neither element_index(), nor constants are in vector_domain. Hence, default
as_child behavior is used, which results in dangling references.
This commit introduces local variables to reference to.