Fixed numpy lambdify test to check return type

Now ensures use_array=True returns numpy.ndarray, and
use_array=False returns numpy.matrix.