Removed inappropriate TODO item: since join RTE does keep track of all
the relations contained (joinaliasvars), no recursion is needed.
Removed extra check of relation name uniqueness.
Improved handling of "unnamed_join".