OPENJPA-2733 fix param index.

Also handle the case if the same Param gets registered multiple times.
This eg happens in case of a Criteria Subquery having the same parameter name.
7 files changed