add passing test for nested objects
document nested object support
Merge pull request #5 from juliangruber/nested

add nested object support