Implement __long__

It is the same as __int__, because Python automatically coerces the output to 
long().  That is also why we do not even test that the output is an instance 
of long.

This fixes issue 3858.