x86: fix nested struct returns
x86: implement struct array writes