LargeWord.toIntX deals with conversion to signed int incorrectly.

This provides the fix to issue aliceml/aliceml#6 and adds a test.