Fixes for skyproc

A pair of changes to get skyproc reading and writing signed ints less than 4 bytes correctly. Added extractIntSigned that sign extends to the high bytes if needed. Fixed LN.toByteArray writing 0x00 instead of 0xff in high bytes for negative ints.