Fix unflatten for nested objects with numeric indices

Options need to be passed through to the recursive call, so that .safe
and .object are still applied to nested objects.