Fix for  perserving nested data structure.
Merge pull request #2 from tjlytle/master

Fix for nested data structures.