mystruc = expstruc(bigstructure);
Recursively expands the structure 'bigstructure' until data is found.
Returns a structure 'mystruc', containing two fields
1. 'name'; cell array of strings of the full name of the field
2. 'type' ; cell array of strings of the type of the field (double, logical, whatever)
Intended to be used with 'eval' for structure concatenation (code to follow).
Removed the need for a global variable, using the method suggested by Robert Cumming.