RSE bug fixes.

Avoid duplicate collection creation error when RSE is applied to two different
join rules that reference a common join input collection.