Add methods to extract signed values.
Fix toShort() test.