[SciPy-dev] Type handling of matrices