Refined test for compressed_matrix-vector product using ranges and slices for vector.