Serializer max nesting depth

Fixes #6.

I know, it took time ;) and happy new year !