fully implement arrayOfStructs module

- several minor changes