fix bugs in arrayOfStructs.py