OPENJPA-2018 correctly handle select IN with arrays txs to rmannibucau for the patch. Applied with minor changes