Add support for nested dicts (see #10)