fix for issue #539 -- abs() nonsensical in the unsigned domain 

@pitrou What cleanup should I be running? Thanks