More work - some modifs in admin element.php

To ensure that the table under repeatelement has a name that would follow the common logic - so if it is created within a repeat group its name refers to the joined, not the main table. Some fix in creation of join params needed as well.