Fix numel() return type

Should always be long; it was being incorrectly cast
to the element type of the tensor.

Also added test for nElement and numel.
ConfusionMatrix:batchAdd()