fix sparse vector assignment from a sparse matrix
(transplanted from fc34433a6bebdc4f739dbbc413c681630619f139)

--HG--
branch : 3.1
extra : transplant_source : %FC4C%3Ak%EB%DCOs%9D%BB%C4%13%C6%81c%06%19%F19
Forward compiler flags to Fortran workaround
(transplanted from 1c115dca308a60813262a407d120475bca13c362)

--HG--
branch : 3.1
extra : transplant_source : %1C%11%5D%CA0%8A%60%812b%A4%07%D1%20G%5B%CA%13%C3b