first working version for unwinding nested arrays
Refactored to allow unwinding up to 3 nested arrays.  Pattern for unwinding n nestings should be (sort of) obvious now.
Refactored to allow unwinding up to 3 nested arrays.  Pattern for unwinding n nestings should be (sort of) obvious now.