Fix memory pre-allocation when permuting inner vectors of a sparse matrix.
(grafted from 1d72cb9b08c13d0c344fdad2a43a91aaf89fa7c5)

--HG--
branch : 3.2
extra : source : 1d72cb9b08c13d0c344fdad2a43a91aaf89fa7c5
Enable Mx0 * 0xN matrix product.

--HG--
branch : 3.2
Add missing specialization of Block<const SparseMatrix>

--HG--
branch : 3.2