Fixed out_type in tensorsolve.