Fix nested structure/union name handling.

Local names must be assigned before processing the body.

Change-Id: I9c3e3d4b7575c612148aea89bbd424e59e3c0604
diff --git a/Scope.cpp b/Scope.cpp
index 28570e0..16f67ec 100644
--- a/Scope.cpp
+++ b/Scope.cpp
@@ -7,7 +7,9 @@
 
 namespace android {
 
-Scope::Scope() {}
+Scope::Scope(const char *localName)
+    : NamedType(localName) {
+}
 
 bool Scope::addType(const char *localName, Type *type, std::string *errorMsg) {
     if (mTypeIndexByName.indexOfKey(localName) >= 0) {