Add support for nested objects

This is an example implementation of support for nested objects, see #81.