circumvented bug in factorie dot products between sparse tensors.