support nested serializers
add a test and example to pull request #116
Merge pull request #148 from ariovistus/nested

add a test to #116