https://github.com/google/flatbuffers/pull/4986 missed part of the implementation. Change-Id: Ie41771eb018a550c289c77ebe9ef5c50d1ad6751
Some generic C++ and Rust code is not generated when unions use type aliases because of potential ambiguity. Actually check for this ambiguity and only disable offending code only if it is found.