Fixed various bugs related to structs and arrays. Now the FSCI analysis
has passed all simple tests.