Arbitrary array and struct nesting