Add kputw() and kputl() tests
Fix kputl(LONG_MIN) bug

Use an explicitly unsigned long, and do any negation as that type.

Make similar changes to kputw(), as the code is clearer.
Merge pull request #20 from jmarshall/kputl

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