Bug fix for kputl(), and kputw()/kputl() tests

`kputl(LONG_MIN)` produced the wrong output due to the usual 2's-complement difficulty of negating the most-negative integer.  This fixes it by doing the negation in an unsigned variable, and redoes kputw() similarly.