fix: invalid Refs in join condition
In case we had a join where one of tables under Scan had bucket_id column in the middle (not in the end) than we incorrectly updated position in ALL references in join condition. The correct way is to update references only for corresponding join child, which is done in this commit
Closes #437 (closed)