First, tax laws don't have clear intentions to begin with -- if a tax law passes with 51 out of 100 votes in the legislature, all 51 representatives could be supporting the "letter" of the law for 51 different actual intentions, many of which might not be noble in the first place (e.g. give a particular local factory a tax break to win more votes next election).
Second, because of this, "intention" would be left open to completely different interpretation by different judges and result in completely arbitrary, non-predictable outcomes in different cases, which would be a nightmare for companies to even attempt to comply with. There's a reason that laws are interpreted by their letter -- it's the only fair way to do it.
Third, the tax laws are passed by different countries and are not harmonized, so even if they had clear intentions, their intentions can completely conflict, and there's no reason why they should be harmonized -- different countries are allowed to have legitimately different philosophies on taxation, there's no "right" answer.
The things you say should "simply be outlawed" -- how? How are you going to determine which internal loan is merely "expensive" (OK) versus "very expensive" (not OK)? How are you going to differentiate between legitimate payments and the "royalties" you put in quotes that you call a construct?