PageableQueryService: moved selection serialization support to a new
interface.