[Olena-patches] 3691: Improve vector and matrix interoperability.