Change the way arrays of structures are handled, also allow scalar arrays again