Check if xid < 2**32.
Merge pull request #99 from trema/feature/check_xid

Check if xid < 2**32.