GEOT_4792: optimizations for the JDBCDataStore.ensureAuthorization method
[GEOT-4800] FilterToSQL improperly encodes fid filters with multiple fids
Merge pull request #461 from mbarto/10x_geot_4792_4800

Backported  GEOT-4792 and GEOT-4800 to 10.x