MDM-7148: "use RTE-RAP demo ,click relations button with exception"

Several fixes regarding reusable type handling (fix incorrect paths when a reusable type is reused, especially when inheritance is involved).
Fix incorrect behavior in column naming (when field with same name in defined in a sibling in inheritance tree).
Fix incorrect foreign key info resolution when foreign key was defined in a reusable type.
Unit test updates.

5.4 version from cherry picks:
1179e284384c768e428afb163506a8636218fee5
b08e7133197422cf0a94f3240993c8036d7c45db
9722b382250b2140d440ea26cf316be08fe9c4a1
ed8fe822d0201c797817864051b290f73dee9668