small fix in scalar and tensorcontract_native