TMDM-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.
TMDM-7148: Code clean up (visibility, unused/misused parameters, local variable extract).
Documentation update (validation rules).