BUG: sparse: correct index data type in bmat