Improved support for outgoing sparse csr matrices