fix bugs in pyDive/arrayOfStructs.py