Fix nested REST object assembly.