Added support for inv and transpose in lambdify

Matrix expressions involving inverse and transpose are now
supported by lambdify, using numpy or sympy as a backend.

Improved the tests for lambdifying symbols to cover the full use
cases.