Fix object closure when nested inside an array 2+ object levels deep