Added namebinding and code generation for nested structs.