Implement method abs() for LongTensor and IntTensor

This will allow, among other things, using `assertTensorEq` with Int and Long tensors.