Added DotProduct:type()

The nn.DotProduct needs a custom type() method.
The self.gradInput table of tensors is converted to the wanted type there.