Add signed int extract and construction functions, and test.