Fix compilation error in tests. (#5472)
Fix compilation error in tests. (#5472)

Local variables were shadowing member fields, causing errors.
DavadDi/flatbuffers,pjulien/flatbuffers,google/flatbuffers,pjulien/flatbuffers,alexames/flatbuffers,evolutional/flatbuffers,pjulien/flatbuffers,evolutional/flatbuffers,pjulien/flatbuffers,evolutional/flatbuffers,alexames/flatbuffers,pjulien/flatbuffers,alexames/flatbuffers,google/flatbuffers,google/flatbuffers,google/flatbuffers,DavadDi/flatbuffers,alexames/flatbuffers,evolutional/flatbuffers,google/flatbuffers,evolutional/flatbuffers,stewartmiles/flatbuffers,DavadDi/flatbuffers,evolutional/flatbuffers,evolutional/flatbuffers,alexames/flatbuffers,evolutional/flatbuffers,google/flatbuffers,stewartmiles/flatbuffers,pjulien/flatbuffers,alexames/flatbuffers,alexames/flatbuffers,stewartmiles/flatbuffers,google/flatbuffers,DavadDi/flatbuffers,stewartmiles/flatbuffers,evolutional/flatbuffers,alexames/flatbuffers,evolutional/flatbuffers,alexames/flatbuffers,stewartmiles/flatbuffers,stewartmiles/flatbuffers,google/flatbuffers,alexames/flatbuffers,stewartmiles/flatbuffers,stewartmiles/flatbuffers,google/flatbuffers,pjulien/flatbuffers,google/flatbuffers,evolutional/flatbuffers,pjulien/flatbuffers,alexames/flatbuffers,DavadDi/flatbuffers,google/flatbuffers,pjulien/flatbuffers,evolutional/flatbuffers,alexames/flatbuffers,stewartmiles/flatbuffers,google/flatbuffers,stewartmiles/flatbuffers,evolutional/flatbuffers,DavadDi/flatbuffers,pjulien/flatbuffers,alexames/flatbuffers,google/flatbuffers,stewartmiles/flatbuffers,stewartmiles/flatbuffers,alexames/flatbuffers,stewartmiles/flatbuffers,google/flatbuffers,pjulien/flatbuffers,pjulien/flatbuffers,alexames/flatbuffers,google/flatbuffers