fix for Util.arrayCompare()

failed comparisons where arrays contained values over 0x7f
fix this by up-casting to short and comparing, also add a small test