Add test case for deep nesting.
Handle deeply-nested structures correctly.

Closes #1.