Always return a non-negative value for CRC32; add test cases.

This closes gh #11.