Fixed crash on scope exit

Operators (*/+-) for maths::Matrix & maths::Vector would cause a crash
on losing scope of the returned object.