Fix recurse_over_arrays to work in deeper nested structures
Support nested arrays if recurse_over_arrays is true