vector_operations: create temporary scalars with correct context