Improve error reporting of ValueExceptions emitted by rcsparse.