Handle nested objects inside arrays.

Signed-off-by: François de Metz <francois@stormz.me>