Unit tests for nested arrays
Added a `tolist` method to `IterData`
Convert named lambdas to functions, per new PEP8