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.
Merge pull request #39 from d11/fix_numel_cwrap

Fix numel() cwrap return type