TH: addmv/addmm/addr: handle better the case of beta=0