Fix wrong comparison of uint[] due to invalid unsigned subtraction.
Add unittest for issue 13073.
Hmph, int[] comparison is also wrong (liable to int overflow).
Merge pull request #881 from quickfur/issue13073

Fix wrong comparison of uint[]/int[] due to invalid subtraction.