[NUCRDBMS-749] Fix ClassTable.getMemberMapping to find PK fields,
meaning that we will omit extra joins in some queries. Fix
selectIdentityXXX helper so that it always checks for the right
SQLTable.