[HexFile.py] Add 'intToArray' function.