Handle structs in arrays and slices. This commit closes #12