Fixed embedded doc code (and ostensibly array) as order in which name, type and header size werew ritten for embeddeds was wrong