GEOT-4813: added pagination and order preservation options for UniqueVisitor

Added pagination and order preservation options for UniqueVisitor.
Also added JDBCDataStore optimized implementation for those