Add support for struct types in the Metadata.

This CL add the support for the struct type in the metadata.
It fix the potential name clash with some fields.

The struct type are still not decoded, to come soon.

BUG=
R=fdoray@chromium.org

Review URL: https://codereview.appspot.com/14630043